package org.sag.mallbf;

import java.io.*;

/*
 * V4: 1832KB -> 278KB
 * V3: 1184KB -> 215KB
 * V2: 2064KB -> 277KB
 */
public class TestObjBuffer {

    static File f = new File(Constants.OBJ45);

    static DataOutputStream out;

    public static void main(String[] args) throws Exception {

        out = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(Constants.BYTES45)));

        BufferedReader br = new BufferedReader(new FileReader(f));

        ObjReader ob = new ObjReader();

        ob.readFromObj(br);

        ob.checkObj();

        ob.exportTo(out, 4);

        System.out.println("");
    }
}
